package cn.xin.system.mapper;

import cn.xin.system.domain.Permission;
import cn.xin.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xin
 * @since 2023-01-03
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    Permission findBySn(String sn);

    void addRolePermission(@Param("roleId") Long id,@Param("permissions") List<Long> permissions);

    List<String> findByLogininfoId(Long id);
}
